package com.igoal.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "wall_setting")
public class WallSetting implements Serializable {

	private static final long serialVersionUID = 120056211127384395L;
	private Integer id;
	private ComponentEnum component;
	private ActionTypeEnum action;
	private WallPlace place;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Enumerated(EnumType.STRING)
	@Column(name = "component", nullable = false, length = 45)
	public ComponentEnum getComponent() {
		return this.component;
	}

	public void setComponent(ComponentEnum component) {
		this.component = component;
	}

	@Enumerated(EnumType.STRING)
	@Column(name = "action", nullable = false, length = 45)
	public ActionTypeEnum getAction() {
		return this.action;
	}

	public void setAction(ActionTypeEnum action) {
		this.action = action;
	}

	@Enumerated(EnumType.STRING)
	@Column(name = "place", nullable = false, length = 45)
	public WallPlace getPlace() {
		return this.place;
	}

	public void setPlace(WallPlace place) {
		this.place = place;
	}

}
